<?php

namespace fanletter;

class Autoloader
{
	public static function register()
	{
		spl_autoload_register(array(__CLASS__, 'load'));
	}
	
	public static function load($typeName)
	{
		$file = dirname(__DIR__) . '/' . str_replace('\\', '/', $typeName) . '.php';
		if(is_file($file))
		{
			require $file;
		}
	}
}
